package com.dh.blog.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dh.blog.dao.CalendarDao;
import com.dh.blog.service.CalendarService;
import com.dh.blog.vo.CalendarPagerVo;
import com.dh.blog.vo.CalendarVo;
import com.dh.blog.vo.PagerVo;
@Service("calendarService")
@Transactional(readOnly=true)
public class CalendarServiceImpl implements CalendarService {
	@Resource
	private CalendarDao calendarDao;
	@Override
	@Transactional(readOnly=false)
	public void doCreateCalendar(CalendarVo calendar) {
		calendarDao.addOne(calendar);
	}
	@Override
	public CalendarPagerVo findPager(PagerVo pagerVo) {
		return calendarDao.findPagerByBlog(pagerVo);
	}

}
